/**
 * 
 */
package com.itinsys.enma.domain.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author pferraz
 *
 */
@SuppressWarnings("rawtypes")
public class EnvironmentFilterMapper implements RowMapper{

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		int envId;
		try{
			envId=rs.getInt("environment_id");
		}catch(SQLException e){
			envId=rs.getInt("id");
		}
		return envId;
	}

	/**
	 * 
	 */
	public EnvironmentFilterMapper() {
	}

	
}
